import request from "@/utils/request";

/**获取并网点列表 */
export function listConnectionPoint(params) {
  return request({
    url: "/zk/connectionPoint/list",
    method: "get",
    params: params,
  });
}

/**新增并网点 */
export function addConnectionPoint(data) {
  return request({
    url: "/zk/connectionPoint/",
    method: "post",
    data: data,
  });
}

/**根据num查询并网点 */
export function getConnectionPointByNum(num) {
  return request({
    url: "/zk/connectionPoint/" + num,
    mothod: "get",
  });
}

/**编辑并网点 */
export function editConnection(data) {
  return request({
    url: "/zk/connectionPoint",
    method: "put",
    data: data,
  });
}

/**删除并网点 */
export function delConnectionPoint(ids) {
  return request({
    url: "/zk/connectionPoint/" + ids,
    method: "delete",
  });
}
